# 将两个变量的值互换
a = 5
b = 10
print(f"a={a},b={b}")

# 方法一:
a,b =b,a
print(f"a={a},b={b}")

# 方法二:
temp = a
a = b
b = temp
print(f"a={a},b={b}")